<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PxBase.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="PhysXLogoBlack.png"/></td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('PxBase_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">PxBase.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="PxBase_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">// Redistribution and use in source and binary forms, with or without</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// modification, are permitted provided that the following conditions</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// are met:</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//  * Redistributions of source code must retain the above copyright</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">//    notice, this list of conditions and the following disclaimer.</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">//  * Redistributions in binary form must reproduce the above copyright</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//    notice, this list of conditions and the following disclaimer in the</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">//    documentation and/or other materials provided with the distribution.</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">//  * Neither the name of NVIDIA CORPORATION nor the names of its</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">//    contributors may be used to endorse or promote products derived</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//    from this software without specific prior written permission.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS &#39;&#39;AS IS&#39;&#39; AND ANY</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">// PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">// Copyright (c) 2008-2021 NVIDIA Corporation. All rights reserved.</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.  </span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#ifndef PX_PHYSICS_PX_BASE</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#define PX_PHYSICS_PX_BASE</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PxFlags_8h.html">foundation/PxFlags.h</a>&quot;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PxSerialFramework_8h.html">common/PxSerialFramework.h</a>&quot;</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PxCollection_8h.html">common/PxCollection.h</a>&quot;</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PxTypeInfo_8h.html">common/PxTypeInfo.h</a>&quot;</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#include &lt;string.h&gt;</span> <span class="comment">// For strcmp</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#if !PX_DOXYGEN</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacephysx.html">physx</a></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;{</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="group__common.html#gac1fb4b256a5d900d394e89db170a2b79">   49</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="namespacephysx.html#a9caf1cbcda071b6d2a9c069faa99da23">PxU16</a> <a class="code" href="group__common.html#gac1fb4b256a5d900d394e89db170a2b79">PxType</a>;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="structPxBaseFlag.html">   54</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structPxBaseFlag.html">PxBaseFlag</a></div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;{   </div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structPxBaseFlag.html#ac258de0c7adaa37f81b6ab1b0c86a6ee">   56</a></span>&#160;    <span class="keyword">enum</span> <a class="code" href="structPxBaseFlag.html#ac258de0c7adaa37f81b6ab1b0c86a6ee">Enum</a></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    {</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="structPxBaseFlag.html#ac258de0c7adaa37f81b6ab1b0c86a6eea2ac901fc5a0e816d32620ec5f4c113ef">   58</a></span>&#160;        eOWNS_MEMORY            = (1&lt;&lt;0),</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="structPxBaseFlag.html#ac258de0c7adaa37f81b6ab1b0c86a6eeac34c2f2192b5e878b7765f7c36de35d2">   59</a></span>&#160;        eIS_RELEASABLE          = (1&lt;&lt;1)</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    };</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;};</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="group__common.html#ga1e3721588799f5fbb18d76e4aab7d018">   63</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="classPxFlags.html">PxFlags&lt;PxBaseFlag::Enum, PxU16&gt;</a> <a class="code" href="group__common.html#ga1e3721588799f5fbb18d76e4aab7d018">PxBaseFlags</a>;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;PX_FLAGS_OPERATORS(<a class="code" href="structPxBaseFlag.html#ac258de0c7adaa37f81b6ab1b0c86a6ee">PxBaseFlag::Enum</a>, <a class="code" href="namespacephysx.html#a9caf1cbcda071b6d2a9c069faa99da23">PxU16</a>)</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classPxBase.html">   73</a></span>&#160;class <a class="code" href="classPxBase.html">PxBase</a></div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;{</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="comment">//= ATTENTION! =====================================================================================</span></div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="comment">// Changing the data layout of this class breaks the binary serialization format.  See comments for </span></div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="comment">// PX_BINARY_SERIAL_VERSION.  If a modification is required, please adjust the getBinaryMetaData </span></div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="comment">// function.  If the modification is made on a custom branch, please change PX_BINARY_SERIAL_VERSION</span></div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="comment">// accordingly.</span></div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="comment">//==================================================================================================</span></div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <span class="keyword">virtual</span>     <span class="keywordtype">void</span>                        release()                                       = 0;    </div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keyword">virtual</span>     <span class="keyword">const</span> <span class="keywordtype">char</span>*                 getConcreteTypeName() <span class="keyword">const</span>                     = 0;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <span class="comment">/* brief Implements dynamic cast functionality. </span></div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="comment">    Example use:</span></div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="comment">    </span></div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="comment">    if(actor-&gt;is&lt;PxRigidDynamic&gt;()) {...}</span></div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="comment">    \return A pointer to the specified type if object matches, otherwise NULL</span></div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="comment">    */</span></div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classPxBase.html#a4bc720adef86ea68bfb5845f0e104d23">  101</a></span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; T*                    <a class="code" href="classPxBase.html#a4bc720adef86ea68bfb5845f0e104d23">is</a>()                                            { <span class="keywordflow">return</span> typeMatch&lt;T&gt;() ? static_cast&lt;T*&gt;(<span class="keyword">this</span>) : NULL; }</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <span class="comment">/* brief Implements dynamic cast functionality for const objects. </span></div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="comment">    Example use:</span></div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="comment">    </span></div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="comment">    if(actor-&gt;is&lt;PxRigidDynamic&gt;()) {...}</span></div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="comment">    \return A pointer to the specified type if object matches, otherwise NULL</span></div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="comment">    */</span></div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="classPxBase.html#a85aa50ac0e5670a2be64411fea62b5e3">  111</a></span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">const</span> T*              <a class="code" href="classPxBase.html#a85aa50ac0e5670a2be64411fea62b5e3">is</a>()<span class="keyword"> const                                      </span>{ <span class="keywordflow">return</span> typeMatch&lt;T&gt;() ? static_cast&lt;const T*&gt;(<span class="keyword">this</span>) : NULL; }</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div><div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="classPxBase.html#ab4e0691a08e49631dc60014d49c7585f">  119</a></span>&#160;    <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="group__common.html#gac1fb4b256a5d900d394e89db170a2b79">PxType</a>                  <a class="code" href="classPxBase.html#ab4e0691a08e49631dc60014d49c7585f">getConcreteType</a>()<span class="keyword"> const                         </span>{ <span class="keywordflow">return</span> mConcreteType; }</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;                </div><div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classPxBase.html#a1dd20bb574075df904e1878f2e771ef9">  127</a></span>&#160;    <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">void</span>                    <a class="code" href="classPxBase.html#a1dd20bb574075df904e1878f2e771ef9">setBaseFlag</a>(<a class="code" href="structPxBaseFlag.html#ac258de0c7adaa37f81b6ab1b0c86a6ee">PxBaseFlag::Enum</a> flag, <span class="keywordtype">bool</span> value)  { mBaseFlags = value ? mBaseFlags|flag : mBaseFlags&amp;~flag; }</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    </div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="classPxBase.html#afb391b692c561df0a54c413785e4ebd0">  136</a></span>&#160;    <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">void</span>                    <a class="code" href="classPxBase.html#afb391b692c561df0a54c413785e4ebd0">setBaseFlags</a>(<a class="code" href="classPxFlags.html">PxBaseFlags</a> inFlags)               { mBaseFlags = inFlags; }</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    </div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="classPxBase.html#ad9b10efae7733ff9c8b8d3b7d90a9a5f">  145</a></span>&#160;    <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="classPxFlags.html">PxBaseFlags</a>             <a class="code" href="classPxBase.html#ad9b10efae7733ff9c8b8d3b7d90a9a5f">getBaseFlags</a>()<span class="keyword"> const                            </span>{ <span class="keywordflow">return</span> mBaseFlags; }</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div><div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="classPxBase.html#a38952fcb80e99f1f5dbf774a75ac2c3d">  156</a></span>&#160;    <span class="keyword">virtual</span>     <span class="keywordtype">bool</span>                        <a class="code" href="classPxBase.html#a38952fcb80e99f1f5dbf774a75ac2c3d">isReleasable</a>()<span class="keyword"> const                            </span>{ <span class="keywordflow">return</span> mBaseFlags &amp; <a class="code" href="structPxBaseFlag.html#ac258de0c7adaa37f81b6ab1b0c86a6eeac34c2f2192b5e878b7765f7c36de35d2">PxBaseFlag::eIS_RELEASABLE</a>; }</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="classPxBase.html#a263f1ef821c74058ce9335e06cb842a4">  162</a></span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a>                               <a class="code" href="classPxBase.html#a263f1ef821c74058ce9335e06cb842a4">PxBase</a>(<a class="code" href="group__common.html#gac1fb4b256a5d900d394e89db170a2b79">PxType</a> concreteType, <a class="code" href="classPxFlags.html">PxBaseFlags</a> baseFlags)</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;                                                : mConcreteType(concreteType), mBaseFlags(baseFlags) {}</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;</div><div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="classPxBase.html#a58b979202e7382701f74977fe3dd5c6f">  168</a></span>&#160;    <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a>                               <a class="code" href="classPxBase.html#a58b979202e7382701f74977fe3dd5c6f">PxBase</a>(<a class="code" href="classPxFlags.html">PxBaseFlags</a> baseFlags) : mBaseFlags(baseFlags) {}</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;</div><div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="classPxBase.html#adfbf62dc32775b068db1c74c7fd3d982">  173</a></span>&#160;    <span class="keyword">virtual</span>                                 <a class="code" href="classPxBase.html#adfbf62dc32775b068db1c74c7fd3d982">~PxBase</a>()                                       {}</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div><div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="classPxBase.html#addfc067afca2f67bda6c497b14424962">  178</a></span>&#160;    <span class="keyword">virtual</span>             <span class="keywordtype">bool</span>                <a class="code" href="classPxBase.html#addfc067afca2f67bda6c497b14424962">isKindOf</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* superClass)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !::strcmp(superClass, <span class="stringliteral">&quot;PxBase&quot;</span>); }</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;</div><div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="classPxBase.html#a3782ca64c8f12c41443f604e300fc207">  180</a></span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;   <span class="keywordtype">bool</span>                <a class="code" href="classPxBase.html#a3782ca64c8f12c41443f604e300fc207">typeMatch</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;<span class="keyword">                                            </span>{</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;                                                <span class="keywordflow">return</span> <a class="code" href="namespacephysx.html#a9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>(<a class="code" href="structPxTypeInfo.html">PxTypeInfo&lt;T&gt;::eFastTypeId</a>)!=<a class="code" href="namespacephysx.html#a9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>(<a class="code" href="structPxConcreteType.html#ad762aca1d4c8fffae41267fae4f1b8e8ae532e94bf1c5c2deac15d6ecc9e96ac6">PxConcreteType::eUNDEFINED</a>) ? </div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;                                                    <a class="code" href="namespacephysx.html#a9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>(getConcreteType()) == <a class="code" href="namespacephysx.html#a9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>(<a class="code" href="structPxTypeInfo.html">PxTypeInfo&lt;T&gt;::eFastTypeId</a>) : isKindOf(<a class="code" href="structPxTypeInfo.html">PxTypeInfo&lt;T&gt;::name</a>());</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;                                            }</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    <span class="keyword">friend</span>              <span class="keywordtype">void</span>                getBinaryMetaData_PxBase(<a class="code" href="classPxOutputStream.html">PxOutputStream</a>&amp; stream);</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="classPxBase.html#a1abe9d19726e1f8f8e56abeb2269b5d4">  191</a></span>&#160;    <a class="code" href="group__common.html#gac1fb4b256a5d900d394e89db170a2b79">PxType</a>                                  <a class="code" href="classPxBase.html#a1abe9d19726e1f8f8e56abeb2269b5d4">mConcreteType</a>;          <span class="comment">// concrete type identifier - see PxConcreteType.</span></div><div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="classPxBase.html#aff7105f65905ecb9f6f7993ba28b712d">  192</a></span>&#160;    <a class="code" href="classPxFlags.html">PxBaseFlags</a>                             <a class="code" href="classPxBase.html#aff7105f65905ecb9f6f7993ba28b712d">mBaseFlags</a>;             <span class="comment">// internal flags</span></div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;};</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;<span class="preprocessor">#if !PX_DOXYGEN</span></div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;} <span class="comment">// namespace physx</span></div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="namespacephysx_html"><div class="ttname"><a href="namespacephysx.html">physx</a></div><div class="ttdef"><b>Definition:</b> GuContactBuffer.h:37</div></div>
<div class="ttc" id="structPxTypeInfo_html"><div class="ttname"><a href="structPxTypeInfo.html">PxTypeInfo</a></div><div class="ttdoc">a structure containing per-type information for types inheriting from PxBase </div><div class="ttdef"><b>Definition:</b> PxTypeInfo.h:91</div></div>
<div class="ttc" id="group__foundation_html_ga6a774eed3cad34b0f636332a3d28c6bb"><div class="ttname"><a href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a></div><div class="ttdeci">#define PX_FORCE_INLINE</div><div class="ttdef"><b>Definition:</b> PxPreprocessor.h:351</div></div>
<div class="ttc" id="classPxBase_html_a3782ca64c8f12c41443f604e300fc207"><div class="ttname"><a href="classPxBase.html#a3782ca64c8f12c41443f604e300fc207">PxBase::typeMatch</a></div><div class="ttdeci">bool typeMatch() const</div><div class="ttdef"><b>Definition:</b> PxBase.h:180</div></div>
<div class="ttc" id="classPxBase_html_addfc067afca2f67bda6c497b14424962"><div class="ttname"><a href="classPxBase.html#addfc067afca2f67bda6c497b14424962">PxBase::isKindOf</a></div><div class="ttdeci">virtual bool isKindOf(const char *superClass) const</div><div class="ttdoc">Returns whether a given type name matches with the type of this instance. </div><div class="ttdef"><b>Definition:</b> PxBase.h:178</div></div>
<div class="ttc" id="namespacephysx_html_a9b7fbd746d18bf5b6545713a8d818f41"><div class="ttname"><a href="namespacephysx.html#a9b7fbd746d18bf5b6545713a8d818f41">physx::PxU32</a></div><div class="ttdeci">uint32_t PxU32</div><div class="ttdef"><b>Definition:</b> PxSimpleTypes.h:71</div></div>
<div class="ttc" id="classPxBase_html_adfbf62dc32775b068db1c74c7fd3d982"><div class="ttname"><a href="classPxBase.html#adfbf62dc32775b068db1c74c7fd3d982">PxBase::~PxBase</a></div><div class="ttdeci">virtual ~PxBase()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> PxBase.h:173</div></div>
<div class="ttc" id="structPxBaseFlag_html_ac258de0c7adaa37f81b6ab1b0c86a6eeac34c2f2192b5e878b7765f7c36de35d2"><div class="ttname"><a href="structPxBaseFlag.html#ac258de0c7adaa37f81b6ab1b0c86a6eeac34c2f2192b5e878b7765f7c36de35d2">PxBaseFlag::eIS_RELEASABLE</a></div><div class="ttdef"><b>Definition:</b> PxBase.h:59</div></div>
<div class="ttc" id="PxCollection_8h_html"><div class="ttname"><a href="PxCollection_8h.html">PxCollection.h</a></div></div>
<div class="ttc" id="classPxBase_html_afb391b692c561df0a54c413785e4ebd0"><div class="ttname"><a href="classPxBase.html#afb391b692c561df0a54c413785e4ebd0">PxBase::setBaseFlags</a></div><div class="ttdeci">PX_FORCE_INLINE void setBaseFlags(PxBaseFlags inFlags)</div><div class="ttdoc">Set PxBaseFlags. </div><div class="ttdef"><b>Definition:</b> PxBase.h:136</div></div>
<div class="ttc" id="group__common_html_gac1fb4b256a5d900d394e89db170a2b79"><div class="ttname"><a href="group__common.html#gac1fb4b256a5d900d394e89db170a2b79">PxType</a></div><div class="ttdeci">PxU16 PxType</div><div class="ttdef"><b>Definition:</b> PxBase.h:49</div></div>
<div class="ttc" id="classPxOutputStream_html"><div class="ttname"><a href="classPxOutputStream.html">PxOutputStream</a></div><div class="ttdoc">Output stream class for I/O. </div><div class="ttdef"><b>Definition:</b> PxIO.h:114</div></div>
<div class="ttc" id="PxSerialFramework_8h_html"><div class="ttname"><a href="PxSerialFramework_8h.html">PxSerialFramework.h</a></div></div>
<div class="ttc" id="classPxBase_html_a1abe9d19726e1f8f8e56abeb2269b5d4"><div class="ttname"><a href="classPxBase.html#a1abe9d19726e1f8f8e56abeb2269b5d4">PxBase::mConcreteType</a></div><div class="ttdeci">PxType mConcreteType</div><div class="ttdef"><b>Definition:</b> PxBase.h:191</div></div>
<div class="ttc" id="classPxBase_html_ad9b10efae7733ff9c8b8d3b7d90a9a5f"><div class="ttname"><a href="classPxBase.html#ad9b10efae7733ff9c8b8d3b7d90a9a5f">PxBase::getBaseFlags</a></div><div class="ttdeci">PX_FORCE_INLINE PxBaseFlags getBaseFlags() const</div><div class="ttdoc">Returns PxBaseFlags. </div><div class="ttdef"><b>Definition:</b> PxBase.h:145</div></div>
<div class="ttc" id="classPxBase_html_a1dd20bb574075df904e1878f2e771ef9"><div class="ttname"><a href="classPxBase.html#a1dd20bb574075df904e1878f2e771ef9">PxBase::setBaseFlag</a></div><div class="ttdeci">PX_FORCE_INLINE void setBaseFlag(PxBaseFlag::Enum flag, bool value)</div><div class="ttdoc">Set PxBaseFlag. </div><div class="ttdef"><b>Definition:</b> PxBase.h:127</div></div>
<div class="ttc" id="structPxBaseFlag_html"><div class="ttname"><a href="structPxBaseFlag.html">PxBaseFlag</a></div><div class="ttdoc">Flags for PxBase. </div><div class="ttdef"><b>Definition:</b> PxBase.h:54</div></div>
<div class="ttc" id="structPxBaseFlag_html_ac258de0c7adaa37f81b6ab1b0c86a6ee"><div class="ttname"><a href="structPxBaseFlag.html#ac258de0c7adaa37f81b6ab1b0c86a6ee">PxBaseFlag::Enum</a></div><div class="ttdeci">Enum</div><div class="ttdef"><b>Definition:</b> PxBase.h:56</div></div>
<div class="ttc" id="classPxBase_html_a85aa50ac0e5670a2be64411fea62b5e3"><div class="ttname"><a href="classPxBase.html#a85aa50ac0e5670a2be64411fea62b5e3">PxBase::is</a></div><div class="ttdeci">const T * is() const</div><div class="ttdef"><b>Definition:</b> PxBase.h:111</div></div>
<div class="ttc" id="classPxBase_html_a263f1ef821c74058ce9335e06cb842a4"><div class="ttname"><a href="classPxBase.html#a263f1ef821c74058ce9335e06cb842a4">PxBase::PxBase</a></div><div class="ttdeci">PX_INLINE PxBase(PxType concreteType, PxBaseFlags baseFlags)</div><div class="ttdoc">Constructor setting concrete type and base flags. </div><div class="ttdef"><b>Definition:</b> PxBase.h:162</div></div>
<div class="ttc" id="classPxBase_html_a4bc720adef86ea68bfb5845f0e104d23"><div class="ttname"><a href="classPxBase.html#a4bc720adef86ea68bfb5845f0e104d23">PxBase::is</a></div><div class="ttdeci">T * is()</div><div class="ttdef"><b>Definition:</b> PxBase.h:101</div></div>
<div class="ttc" id="classPxBase_html_aff7105f65905ecb9f6f7993ba28b712d"><div class="ttname"><a href="classPxBase.html#aff7105f65905ecb9f6f7993ba28b712d">PxBase::mBaseFlags</a></div><div class="ttdeci">PxBaseFlags mBaseFlags</div><div class="ttdef"><b>Definition:</b> PxBase.h:192</div></div>
<div class="ttc" id="PxTypeInfo_8h_html"><div class="ttname"><a href="PxTypeInfo_8h.html">PxTypeInfo.h</a></div></div>
<div class="ttc" id="group__common_html_ga1e3721588799f5fbb18d76e4aab7d018"><div class="ttname"><a href="group__common.html#ga1e3721588799f5fbb18d76e4aab7d018">PxBaseFlags</a></div><div class="ttdeci">PxFlags&lt; PxBaseFlag::Enum, PxU16 &gt; PxBaseFlags</div><div class="ttdef"><b>Definition:</b> PxBase.h:63</div></div>
<div class="ttc" id="classPxBase_html_a58b979202e7382701f74977fe3dd5c6f"><div class="ttname"><a href="classPxBase.html#a58b979202e7382701f74977fe3dd5c6f">PxBase::PxBase</a></div><div class="ttdeci">PX_INLINE PxBase(PxBaseFlags baseFlags)</div><div class="ttdoc">Deserialization constructor setting base flags. </div><div class="ttdef"><b>Definition:</b> PxBase.h:168</div></div>
<div class="ttc" id="PxFlags_8h_html"><div class="ttname"><a href="PxFlags_8h.html">PxFlags.h</a></div></div>
<div class="ttc" id="classPxFlags_html"><div class="ttname"><a href="classPxFlags.html">PxFlags&lt; PxBaseFlag::Enum, PxU16 &gt;</a></div></div>
<div class="ttc" id="namespacephysx_html_a9caf1cbcda071b6d2a9c069faa99da23"><div class="ttname"><a href="namespacephysx.html#a9caf1cbcda071b6d2a9c069faa99da23">physx::PxU16</a></div><div class="ttdeci">uint16_t PxU16</div><div class="ttdef"><b>Definition:</b> PxSimpleTypes.h:73</div></div>
<div class="ttc" id="classPxBase_html"><div class="ttname"><a href="classPxBase.html">PxBase</a></div><div class="ttdoc">Base class for objects that can be members of a PxCollection. </div><div class="ttdef"><b>Definition:</b> PxBase.h:73</div></div>
<div class="ttc" id="structPxConcreteType_html_ad762aca1d4c8fffae41267fae4f1b8e8ae532e94bf1c5c2deac15d6ecc9e96ac6"><div class="ttname"><a href="structPxConcreteType.html#ad762aca1d4c8fffae41267fae4f1b8e8ae532e94bf1c5c2deac15d6ecc9e96ac6">PxConcreteType::eUNDEFINED</a></div><div class="ttdef"><b>Definition:</b> PxTypeInfo.h:57</div></div>
<div class="ttc" id="classPxBase_html_ab4e0691a08e49631dc60014d49c7585f"><div class="ttname"><a href="classPxBase.html#ab4e0691a08e49631dc60014d49c7585f">PxBase::getConcreteType</a></div><div class="ttdeci">PX_FORCE_INLINE PxType getConcreteType() const</div><div class="ttdoc">Returns concrete type of object. </div><div class="ttdef"><b>Definition:</b> PxBase.h:119</div></div>
<div class="ttc" id="group__foundation_html_gacb03347b642a2a5bdea1f9b305a6fbec"><div class="ttname"><a href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a></div><div class="ttdeci">#define PX_INLINE</div><div class="ttdef"><b>Definition:</b> PxPreprocessor.h:336</div></div>
<div class="ttc" id="classPxBase_html_a38952fcb80e99f1f5dbf774a75ac2c3d"><div class="ttname"><a href="classPxBase.html#a38952fcb80e99f1f5dbf774a75ac2c3d">PxBase::isReleasable</a></div><div class="ttdeci">virtual bool isReleasable() const</div><div class="ttdoc">Whether the object is subordinate. </div><div class="ttdef"><b>Definition:</b> PxBase.h:156</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_713b4d6d20ce249967929ad234a3da6e.html">include</a></li><li class="navelem"><a class="el" href="dir_614c92edf36df8b9e1f64405ff8ea5e2.html">common</a></li><li class="navelem"><a class="el" href="PxBase_8h.html">PxBase.h</a></li>
    <li class="footer">Copyright &copy; 2008-2021 NVIDIA Corporation, 2788 San Tomas Expressway, Santa Clara, CA 95051 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a></li>
  </ul>
</div>
</body>
</html>
